package com.jokerpan.project.mapper;

import com.jokerpan.project.entity.UsersPermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author jokerpan
 */
@Mapper
public interface PermissionsMapper {

    List<UsersPermission> queryList(UsersPermission usersPermission);

    List<UsersPermission> queryAll();

    /**
     * 新增角色
     * @param usersPermission
     * @return 是否成功
     */
    int add(UsersPermission usersPermission);

    int update(UsersPermission usersPermission);

    int deleteById(Integer id);

}
